package com.shensi.api.pay.client;

import com.shensi.api.pay.pojo.vo.OilGunVO;
import com.shensi.api.pay.pojo.vo.StaffVO;
import com.shensi.common.core.constant.CloudConstant;
import com.shensi.api.pay.param.ResultData;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @date 2023/8/7
 */
@Api(tags = "油枪员工列表")
@FeignClient(name = CloudConstant.PAY_SERVER, path = "/staff")
public interface StaffClient {


    @GetMapping("list")
    @ApiOperation("获取油枪员工列表")
    public ResultData<OilGunVO> queryStaffOilList(@RequestParam("stationId") Long stationId,
                                                  @RequestParam(required = false, defaultValue = "0",value = "userId") Long userId);

    @GetMapping("listWithOil")
    @ApiOperation("只获取油站员工列表(包含油品)")
    public ResultData<List<StaffVO>> queryStaffOilList(@RequestParam("stationId") Long stationId);

}
